package cn.botter.auth.domain.convert;

import cn.botter.auth.domain.entity.AuthUserBO;
import cn.botter.auth.infra.basic.entity.AuthUser;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;


@Mapper
public interface AuthUserConvert {
    AuthUserConvert INSTANCE = Mappers.getMapper(AuthUserConvert.class);

    /**
     * AuthUserDTO转换为AuthUserBO
     */

    AuthUser convertBoToAuthUser(AuthUserBO authUserBO);

    AuthUserBO convertAuthUserToBO(AuthUser authUser);
}
